package com.hzw.saas.api.msg.bo;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 通用的系统/群组消息
 * </p>
 *
 * @author sonam
 * @since 2021/1/6 19:42
 */
@Data
@ApiModel("系统/群组消息")
public class MsgBo implements Serializable {
    private static final long serialVersionUID = 4753055068903704139L;

    @ApiModelProperty(value = "消息id")
    private String msgId;

    @ApiModelProperty(value = "toId", notes = "对于不同消息类型有着不同的含义")
    private String to;

    @ApiModelProperty(value = "formId", notes = "对于不同消息类型有着不同的含义")
    private String from;

    @ApiModelProperty(value = "消息内容")
    private String msg;

    @ApiModelProperty(value = "发送时间")
    private Date date;

    @ApiModelProperty(value = "图标", notes = "暂定为前端图标样式")
    private String icon;

    @ApiModelProperty(value = "消息标题", notes = "可以为null，目前群组消息没有标题，系统消息有标题")
    private String title;

    @ApiModelProperty(value = "消息类型", notes = "1：系统消息，2：群组消息，3：个人消息")
    private Integer type;

    @ApiModelProperty(value = "消息是否已读", notes = "1：已读，0：未读")
    private Integer read;

    @ApiModelProperty(value = "消息是否已删除", notes = "1：已删除，0：未删除")
    private Integer isDelete;

    @ApiModelProperty(value = "当前消息业务", notes = "该字段属性为空说明，没有业务")
    private MsgOperationBo msgOperationDto;

}
